import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/list_integral_info_entity.dart';

ListIntegralInfoEntity $ListIntegralInfoEntityFromJson(Map<String, dynamic> json) {
	final ListIntegralInfoEntity listIntegralInfoEntity = ListIntegralInfoEntity();
	final List<ListIntegralInfoContent>? content = jsonConvert.convertListNotNull<ListIntegralInfoContent>(json['content']);
	if (content != null) {
		listIntegralInfoEntity.content = content;
	}
	final int? pageNum = jsonConvert.convert<int>(json['pageNum']);
	if (pageNum != null) {
		listIntegralInfoEntity.pageNum = pageNum;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		listIntegralInfoEntity.pageSize = pageSize;
	}
	final int? totalPages = jsonConvert.convert<int>(json['totalPages']);
	if (totalPages != null) {
		listIntegralInfoEntity.totalPages = totalPages;
	}
	final int? totalSize = jsonConvert.convert<int>(json['totalSize']);
	if (totalSize != null) {
		listIntegralInfoEntity.totalSize = totalSize;
	}
	return listIntegralInfoEntity;
}

Map<String, dynamic> $ListIntegralInfoEntityToJson(ListIntegralInfoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['content'] =  entity.content?.map((v) => v.toJson()).toList();
	data['pageNum'] = entity.pageNum;
	data['pageSize'] = entity.pageSize;
	data['totalPages'] = entity.totalPages;
	data['totalSize'] = entity.totalSize;
	return data;
}

ListIntegralInfoContent $ListIntegralInfoContentFromJson(Map<String, dynamic> json) {
	final ListIntegralInfoContent listIntegralInfoContent = ListIntegralInfoContent();
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		listIntegralInfoContent.createTime = createTime;
	}
	final String? score = jsonConvert.convert<String>(json['score']);
	if (score != null) {
		listIntegralInfoContent.score = score;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		listIntegralInfoContent.title = title;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		listIntegralInfoContent.type = type;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		listIntegralInfoContent.remark = remark;
	}
	return listIntegralInfoContent;
}

Map<String, dynamic> $ListIntegralInfoContentToJson(ListIntegralInfoContent entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['createTime'] = entity.createTime;
	data['score'] = entity.score;
	data['title'] = entity.title;
	data['type'] = entity.type;
	data['remark'] = entity.remark;
	return data;
}